package com.gump.essay.common.exception;

import com.gump.essay.common.api.IErrorCode;

/**
 * 断言处理类 抛出各种api异常
 *
 * @auther zzc
 * @date 2020/9/11 0:02
 */
public class Asserts {

    public static void fail(String message) {
        throw new ApiException(message);
    }

    public static void fail(IErrorCode errorCode) {
        throw new ApiException(errorCode);
    }
}
